package com.sellspringcloud.server.service.impl;

import com.sellspringcloud.server.dataobject.UserInfo;
import com.sellspringcloud.server.repository.UserRepository;
import com.sellspringcloud.server.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author
 * @create 2019-08-10 17:11
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserRepository userRepository;

    @Override
    public UserInfo getUserByOpenId(String openId) {
        return userRepository.findUserInfoByOpenid(openId);
    }
}